home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / AEboundaryTemplate.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  2.8 KB  |  102 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //    Alias|Wavefront Script File
  19. //
  20. //    Creation Date:    May 29, 1997
  21. //    Author:            ajp
  22. //
  23. //    Procedure Name:
  24. //    AEcheckEndPoint
  25. //
  26. //    Description Name;
  27. //    Call back to support dimming when the endPoint attr is checked
  28. //  on and off.
  29. //
  30. //    Input Value:
  31. //    nodeName
  32. //
  33. //    Output Value:
  34. //    None
  35. //
  36.  
  37.  
  38. global proc AEcheckEndPoint(string $nodeName) 
  39. {
  40.     int $isEndPoint = `getAttr ($nodeName+".endPoint")`;
  41.     
  42.     if ($isEndPoint) 
  43.     {
  44.         editorTemplate -dimControl $nodeName "endPointTolerance" false;
  45.     }
  46.     else 
  47.     {
  48.         editorTemplate -dimControl $nodeName "endPointTolerance" true;
  49.     }
  50. }
  51.  
  52. //    Procedure Name:
  53. //    AEboundaryTemplate
  54. //
  55. //    Description Name;
  56. //    Creates the attribute editor controls for the boundary node
  57. //
  58. //    Input Value:
  59. //    nodeName
  60. //
  61. //    Output Value:
  62. //    None
  63. //
  64. global proc AEboundaryTemplate( string $nodeName )
  65. {
  66.  
  67.     editorTemplate -beginScrollLayout;
  68.  
  69.         editorTemplate -beginLayout "Boundary History" -collapse false;
  70.             
  71.             editorTemplate -callCustom "AEinputNew \"Input Curve 1\""
  72.                         "AEinputReplace \"Input Curve 1\""
  73.                         "inputCurve1";
  74.             editorTemplate -callCustom "AEinputNew \"Input Curve 2\""
  75.                         "AEinputReplace \"Input Curve 2\""
  76.                         "inputCurve2";
  77.             editorTemplate -callCustom "AEinputNew \"Input Curve 3\""
  78.                         "AEinputReplace \"Input Curve 3\""
  79.                         "inputCurve3";
  80.             editorTemplate -callCustom "AEinputNew \"Input Curve 4\""
  81.                         "AEinputReplace \"Input Curve 4\""
  82.                         "inputCurve4";
  83.  
  84.             editorTemplate -addControl "order";
  85.             editorTemplate -addControl "endPoint" "AEcheckEndPoint";
  86.             editorTemplate -addControl "endPointTolerance";
  87.  
  88.         editorTemplate -endLayout;
  89.  
  90.     // include/call base class/node attributes
  91.     AEabstractBaseCreateTemplate $nodeName;
  92.  
  93.     editorTemplate -addExtraControls;
  94.     editorTemplate -endScrollLayout;
  95.  
  96.     editorTemplate -suppress "inputCurve1";
  97.     editorTemplate -suppress "inputCurve2";
  98.     editorTemplate -suppress "inputCurve3";
  99.     editorTemplate -suppress "inputCurve4";
  100.  
  101. }
  102.